import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppComponent} from './app.component';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {appRoutes} from './app.routes';
import {GrowlModule} from 'primeng/growl';
import {RouterModule} from '@angular/router';
import {HttpClientModule} from '@angular/common/http';
import {HttpBaseService} from './public/service/http-service/http-base.service';
import {HttpService} from './public/service/http-service/http.service';
import {MessageService} from './public/service/message/message.service';
import {ReactiveFormsModule} from '@angular/forms';


@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    ReactiveFormsModule,
    BrowserAnimationsModule, // 只能写在跟模块，动画需要
    HttpClientModule,
    RouterModule.forRoot(appRoutes, {useHash: true}), // 跟路由
    GrowlModule
  ],
  providers: [
    HttpBaseService,
    HttpService,
    MessageService
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}
